﻿using Hazza.eLearning.Models;
using Orchard.ContentManagement.Handlers;


namespace Hazza.eLearning.Handlers
{
    public class ExamQuestionPartHandler : ContentHandler
    {
        public ExamQuestionPartHandler(IExamService examService)
        {
            OnLoading<ExamQuestionPart>((context, part) => part.optionsField.Loader(x => examService.GetOptions(part.Id)));
        }
    }
}